﻿@model StorageLocationType

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        @*<legend>Company</legend>*@

        @Html.HiddenFor(model => model.Id)

        <table class="table">
            <caption>Storage location type details</caption>
            <tbody>
                <tr>
                    <th>@Html.LabelFor(model => model.Code)</th>
                    <td>@Html.EditorFor(model => model.Code)
                        @Html.ValidationMessageFor(model => model.Code)</td>
                </tr>

                <tr>
                    <th>@Html.LabelFor(model => model.Name)</th>
                    <td>@Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)</td>
                </tr>

                <tr>
                    <th>@Html.LabelFor(model => model.Description)</th>
                    <td>@Html.EditorFor(model => model.Description)
                        @Html.ValidationMessageFor(model => model.Description)</td>
                </tr>

                <tr>
                    <th>@Html.LabelFor(model => model.CreatedDateTime)</th>
                    <td>@Html.EditorFor(model => model.CreatedDateTime)
                        @Html.ValidationMessageFor(model => model.CreatedDateTime)</td>
                </tr>
            </tbody>
        </table>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>